<div id="page-placeholder">

    <div id="wrap" class="clearfix">

        <h1><?= lang('menu.sitemap') ?></h1>

		<ul class='sitemap-new'>
			<li><a class='orange-box' href="<?= base_url('home') ?>">Home</a>
                    <ul>
                        <li><a href="<?= base_url('about') ?>"><?= lang('menu.about') ?></a></li>
                        <li><a href="<?= base_url('contact') ?>"><?= lang('menu.contactus') ?></a></li>
                    </ul>
                </li>
			<li>
				<a class='orange-box' href="<?= base_url('hotels') ?>"><?= lang('main.hotels') ?></a>
                    <ul>
					<?
						if(isset($hotels))
                        foreach($hotels as $hotel):
							$link=base_url('hotels/details?hotel_id='.$hotel->object_ID.'&amp;nr_adults=1');
					?>
						<li><a href='<?= $link ?>'><?= $hotel->object_name ?></a></li>
					<?
						endforeach;
					?>
                        <li><a href="<?= base_url('faq_hotels') ?>">FAQ <?= lang('main.hotels') ?></a></li>
                    </ul>
                </li>
			<li class='last'>
				<a class='orange-box' href="<?= base_url('excursions') ?>"><?= lang('menu.excursions') ?></a>
                    <ul>
					<?
						if(isset($excursions))
                        foreach($excursions as $excursion):
							$link=base_url('excursions/'.urlify::filter($excursion->title).'-'.$excursion->id);
					?>
						<li><a href='<?= $link ?>'><?= $excursion->title ?></a></li>
					<?
						endforeach;
					?>
                        <li><a href="<?= base_url('faq_excursions') ?>">FAQ <?= lang('menu.excursions') ?></a></li>
                    </ul>
                </li>
			<li class='clear'></li>
			<li>
				<a class='orange-box' href="<?= base_url('news') ?>"><?= lang('menu.press.news') ?></a>
                    <ul>
					<?
						if(isset($news))
                        foreach($news as $n):
							$link=base_url('news/'.urlify::filter($n['post_title']).'-'.$n['post_ID']);
					?>
						<li><a href='<?= $link ?>'><?= $n['post_title'] ?></a></li>
					<?
						endforeach;
					?>
				</ul>
			</li>			
			<li>
				<a class='orange-box' href="<?= base_url('rentacar') ?>">Rentacar</a>
				<ul>
					<?
						if(isset($rentacar))
                        foreach($rentacar as $car):
							$link = base_url('rentacar/'.urlify::filter($car->name).'-'.$car->id);
					?>
						<li><a href='<?= $link ?>'><?= $car->name ?></a></li>
					<?
						endforeach;
					?>
                        <li><a href="<?= base_url('faq_rentacar') ?>">FAQ Rentacar</a></li>
				</ul>
			</li>  
			<li class='last'>
				<a class='orange-box' href="<?= base_url('destinations') ?>"><?= lang('menu.destinations') ?></a>
                    <ul>
					<?
						if(isset($destinations))
                        foreach($destinations as $destination):
							$link=base_url('destinations/'.urlify::filter($destination->name).'-'.$destination->ID);
					?>
						<li><a href='<?= $link ?>'><?= $destination->name ?></a></li>
					<?
						endforeach;
					?>
                    </ul>
			</li>
			<li class='clear'></li>
		</ul>
    </div>

</div>
<br>
<br>
<br>